package com.lwm.springcloud.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author lwmzzz
 * @version 1.0
 * @date 2020/11/23 16:57
 * @description
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MsgInfo<T> {
    private Integer code;
    private String msg;
    private T data;

    public MsgInfo(Integer code, String msg) {
        this(code, msg, null);
    }
}
